package com.wanxi.education.service;

import com.wanxi.education.model.vo.user.*;

import java.util.Map;

/**
 * @Author: YanZhengYi
 * @Description:
 * @Date: Created in 2021/9/24
 * @Version: 1.0
 */
public interface LoginService {

    /**
     * 管理员/超管登录
     *
     * @param loginVo
     * @return
     */
    Map<String, String> adminLogin(LoginVo loginVo);

    /**
     * 通过登录手机号获取账户信息
     *
     * @param phone
     * @return
     */
    UserVO findByPhone(String phone);

    /**
     * @param phone 登录手机号码
     * @param state 0:管理员 1：机构负责人 2：学员
     * @return
     */
    UserVO findByPhone(String phone, Integer state);


    Map<String, String> BLoginByPass(BUserLoginVo bUserLoginVo);

    Map<String, String> CLoginByPass(CUserLoginVo cUserLoginVo);

    void getPhoneCode(String phone);

    Map<String, String> getPictureCode();

    Map<String, String> BLoginByCode(BUserPhoneLoginVo bUserLoginVo);

    Map<String, String> CLoginByCode(CUserPhoneLoginVo cUserLoginVo);

    String changePassword(CUserChangePasswordVo cUserChangePasswordVo);
}
